# @Time    : 2023/4/23 09:36
# @Author  : Miaokela
from datetime import timedelta
import os


class BaseConfig:
    BASE_DIR = os.path.dirname(os.path.realpath(__file__))
    APP_DIR = os.path.join(BASE_DIR, 'app')
    API_DIR = os.path.join(APP_DIR, 'api')

    JWT_SECRET_KEY = 'c2hlbmdfeWFuZw=='  # JWT密钥
    JWT_MINUTES = 60 * 120  # 60分钟登出
    JWT_ACCESS_TOKEN_EXPIRES = timedelta(minutes=JWT_MINUTES)
    # JWT_ACCESS_TOKEN_EXPIRES = False